import Home from '@/pages/Home'
import Search from '@/pages/Search'
import Register from '@/pages/Register'
import Login from '@/pages/Login'
import Detail from '@/pages/Detail'
import AddCartSuccess from '@/pages/AddCartSuccess'
import ShopCart from '@/pages/ShopCart'


export default [
    {
        path: '/home',
        component: Home,
        meta: { footerShow: true }
    },
    {
        path: '/search/:keyword?',
        component: Search,
        meta: { footerShow: true },
        name: 'search'
    },
    {
        path: '/register',
        component: Register,
        meta: { footerShow: false }
    },
    {
        path: '/login',
        component: Login,
        meta: { footerShow: false }
    },
    {
        path: '/',
        redirect: '/home',
        meta: { footerShow: false }
    },
    {
        path: '/detail/:goodId',
        component: Detail,
        meta: { footerShow: true }
    },
    {
        path:'/addcartsuccess',
        name:'addcartsuccess',
        component: AddCartSuccess,
        meta: {footerShow: true}
    },
    {
        path:'/shopcart',
        name:'shopcart',
        component: ShopCart,
        meta: {footerShow: true}
    }
]